package com.yhb.channel.impl.MOCK;

import com.yhb.channel.ChannelFactory;
import com.yhb.channel.exception.PayChannelException;

public class MockException extends PayChannelException {
    public MockException(Long code, String message) {
        super(code, message);
        this.channelType = ChannelFactory.MOCK;
        this.channelName = MockChannel.CHANNEL_NAME;
    }

    public MockException(Long code, String message, Throwable nestedException) {
        super(code, message, nestedException);
        this.channelType = ChannelFactory.MOCK;
        this.channelName = MockChannel.CHANNEL_NAME;
    }

    public MockException(String code, String message, Throwable nestedException) {
        super(code, message, nestedException);
        this.channelType = ChannelFactory.MOCK;
        this.channelName = MockChannel.CHANNEL_NAME;
    }
}
